<?php
/**
 * Created by IDEA.
 * User: dinesh
 * Date: Mar 5, 2012
 * Time: 11:02:25 PM
 */
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title><?php echo CmbBaseConfig::getConfig('SiteTitle');?></title>
    <link href="images/files/login.css" rel="stylesheet" type="text/css" />

</head>
<body>
  <script src="js/jquery/jquery-1.7.1.min.js"></script>
  <div align="center" style=padding-top:5px">
			<div>
			<img src="images/app/logo_new.png" alt="Science SIS"/>
			</div>

  </div>
  <div id="container">

  <div class="title">User LogIn </div>
  <form action="?site/login" method="post" id="ajax_form">
    <ul>
      <li class="label"> Username</li>
      <li class="field"><input name="username" type="text" class="text" /></li>
      <li class="label"> Password</li>
      <li class="field"><input name="password" type="password" class="text"/></li>
      <li class="label"> </li>
      <li class="field"><input name="submit"  type="image" src="images/files/isubmit.jpg" /></li>
    </ul>
      <input type="hidden" name="submitted" value="TRUE" />
  </form>
  <p class="default"> Default username: admin / password: admin</p>
</div>


  <?php
   //
  if (!empty($this->MessageModel)) {
      echo '<div align=center>';
	echo '<h1 style="color:red">Error!</h1>
	<p class="error">The following error(s) occurred:<br />';
	foreach ($this->MessageModel as $msg) {
		echo " - $msg<br />\n";
	}
	echo '</p><p>Please try again.</p>';
      echo '</div>';
  }


  ?>
</body>
</html>